package com.example.cloudalibabanacos9001.controller;import com.example.cloudalibabanacos9001.service.MyFeign;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.kafka.core.KafkaTemplate;import org.springframework.web.bind.annotation.*;import javax.annotation.Resource;@RestControllerpublic class MyController {    @Autowired    MyFeign myFeign;    @RequestMapping(value = "/get",method = RequestMethod.GET)    public String demo(){        return myFeign.reduct();    }        @Resource        private KafkaTemplate<String, Object> kafkaTemplate;        @GetMapping("/kafka/test/{msg}")        public void sendMessage(@PathVariable("msg") String msg) {            kafkaTemplate.send("test","www");        }}